package com.xmy.cultivate.entity.views;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 招生明细
 */
@Data
public class EnrollGrant {

    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    private Long orderId;

    @ExcelIgnore
    private Long studentId;

    @ExcelIgnore
    private Integer yearClassId;

    @ExcelIgnore
    private String yearClassName;
    @ExcelIgnore
    private String studentName;

    @ExcelIgnore
    private Long subjectsId;

    @ExcelIgnore
    private String subjectsName;

    @ExcelIgnore
    private Long schoolId;

    @ExcelIgnore
    private String schoolName;

    @ExcelIgnore
    private Long teacherId;

    @ExcelProperty(value = "教师", index = 0)
    private String teacherName;

    @ExcelIgnore
    private LocalDate addDate;

    /**
     * 邀约人
     */
    @ExcelIgnore
    private String inviteNames;

    /**
     * 试听人
     */
    @ExcelIgnore
    private String auditionNames;

    /**
     * 成交人
     */
    @ExcelIgnore
    private String bargainNames;

    //类型：邀约:1，试听:2，成交:3
    @ExcelIgnore
    private Integer type;

    //邀约:1，试听:2，成交:3
    @ExcelIgnore
    private String typeName;

    //0未核对，1已核对
    @ExcelIgnore
    private Integer checkType;

    //数据： 1 或 0.5 ，最多两人
    @ExcelIgnore
    private double dataNum;

    //是否发放：0否，1是
    @ExcelIgnore
    private Integer isGrant;


    @ExcelProperty(value = "号码", index = 1)
    private BigDecimal phoneAmount;

    //邀约
    @ExcelProperty(value = "邀约", index = 2)
    private BigDecimal invitationAmount;

    //试听
    @ExcelProperty(value = "试听", index = 3)
    private BigDecimal trialListeningAmount;

    //成交
    @ExcelProperty(value = "成交", index = 4)
    private BigDecimal transactionAmount;

    //收入合计
    @ExcelProperty(value = "收入合计", index = 5)
    private BigDecimal commissionTotal;

    //操作人id
    @ExcelIgnore
    private Long operateTeacherId;

    //操作人名称
    @ExcelIgnore
    private String operateTeacherName;

    //发放操作时间戳
    @ExcelIgnore
    private Long grantTime;
    //发放操作时间
    @ExcelIgnore
    private String operateTime;

}
